<div class="mid_extra_top"> </div>
<h2 class="main_title">Add Product</h2>
    <div class="def_width_100 text_def_13">
        The product you are adding may already exist on Wondere.
        Search our catalog for the product you want to sell and save yourself some time.
    </div>
<div class="width_74 f_left"> <?php echo $this->element('Seller_Product_search');  ?> </div>
<?php
	echo $this->element('Seller_add_a_product_left'); 

?>

<div class="width_79 f_right">
  <div class="paging_gray">
    <p>1 to 10 of 50 Results</p>
    <!--<span class="f_right">
    <select>
      <option>1</option>
    </select>
    <label> Sort By</label>
    </span>--> </div>
  <div class="def_width_100 f_left">
  <?php
  	if(isset($products) and ($products))
		{
	  ?>
			<ul class="ul_prod_listing">
            <?php
				foreach($products as $product)
				{
			?>
			  <li>
				<div class="width_20 f_left">
                 <?php echo $html->link($html->image('Product/'.$product['Product']['img'], array('width'=>'371', 'height'=>'240')), array('controller'=>'products', 'action'=>'product', $product['Product']['slug']), array('escape'=>false));?>
                </div>
				<div class="width_60 f_left">
				  <p><b><?php echo $html->link($product['Product']['name'], array('controller'=>'products', 'action'=>'product', $product['Product']['slug']), array('escape'=>false));?></b></p>
				  <p>Wisn : <?php echo $product['Product']['wisn']; ?></p>
				  <p>
                  <?php echo $html->link('See all product details', array('controller'=>'products', 'action'=>'product', $product['Product']['slug']), array('escape'=>false));?>
                 </p>
				</div>
          <div class="width_20 f_right"> 
          <?php
		  		if(isset($product['Product']['list_access']) and ($product['Product']['list_access']))
				{
		  ?>
	         <?php echo $html->link('Sell Your', array('action'=>'DisplaySelectedItem', 'Wisn'=>$product['Product']['wisn']), array('class'=>'org_link f_right')); 
				}
				else
				{
					echo "<span><b>Sorry, the ability to create a listing for this item is restricted.<br/></b>(Why?)</span>"; 
				}
				?>
          </div>
			  </li>
              <?php
				}
			  ?>
			</ul>
		<?php
		}
	?>
  </div>
  <div class="paging_gray">
   <!-- <p>1 to 10 of 50 Results</p>-->
  </div>
</div>
